package com.th.admin.service;

import com.th.admin.bean.City;
import com.th.admin.mapper.CityMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author ThreePure
 * @date 2022/4/22 18:46
 * @description: City Service
 * @since 1.8
 */
@Service
public class CityService {
    @Autowired
    CityMapper cityMapper;

    public City findById(long id){
        return cityMapper.findById(id);
    }

    public void insertCity(City city){
        cityMapper.insertCity(city);
    }
}
